package com.ljh.account.mapper;



import com.ljh.account.dao.Income;
import org.apache.ibatis.annotations.*;

import java.math.BigDecimal;
import java.util.List;

import com.ljh.account.dao.Resp.IncomeResp;
import org.apache.ibatis.annotations.Mapper;


import java.util.Map;

@Mapper
public interface IncomeMapper {
    List<IncomeResp> getIncomeWithFilter(@Param("userId") Long userId,
                                         @Param("categoryId") Integer categoryId,
                                         @Param("bankAccountId") Integer bankAccountId,
                                         @Param("minAmount") BigDecimal minAmount,
                                         @Param("maxAmount") BigDecimal maxAmount

    );
    IncomeResp getIncomeById(int id);
    void insertIncome(Income income);
    void updateIncome(Income income);
    void deleteExpense(Long id);
}
